package com.jeff.tianti.cms.dao;

import com.jeff.tianti.cms.entity.ColumnInfo;
import com.jeff.tianti.cms.entity.Teach;
import com.jeff.tianti.common.dao.CommonDao;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author xujianfang
 * @desc ColumnInfoDao接口 
 * @date 2017-03-16
 */
public interface TeachDao extends TeachDaoCustom,CommonDao<Teach,String>{
    @Query("from Teach d where d.deleteFlag=0 ")
    List<Teach> findAllNoDel();

    @Query("from Teach d where d.deleteFlag=0 ")
    Page<Teach> findAllNoDelAndPage(Pageable pageable);
}